package com.hl.springboot4.service.impl;

import com.hl.springboot4.entity.ArticleType;
import com.hl.springboot4.mapper.ArticleTypeMapper;
import com.hl.springboot4.service.ArticleTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName ArticleTypeServiceImpl
 * @Description TODO
 * @Author libowen
 * @Date 2025年03月06日 17:37
 * @Version 1.0
 */
@Service
public class ArticleTypeServiceImpl implements ArticleTypeService {
    @Autowired
    private ArticleTypeMapper articleTypeMapper;
    @Override
    public ArticleType findById(int id) {
        return articleTypeMapper.findById(id);
    }

    @Override
    public List<ArticleType> findAll() {
        return articleTypeMapper.findAll();
    }
}
